
import axios from '@/utils/request'

// 分页
export const pageReturnStock = (params) => {
  return axios({
    method: 'GET',
    url: 'return/pageReturnStock',
    params
  })
}
// 详情
export const applyReturnStockDetail = (applyId ) => {
  return axios({
    method: 'GET',
    url: `return/applyReturnStockDetail/${applyId }`
  })
}

// 退库详情
export const findReturnMaterailDetail = (applyId ) => {
  return axios({
    method: 'GET',
    url: `return/findReturnMaterailDetail/${applyId }`
  })
}
// 提交
export const applyReturnStock = (data) => {
  return axios({
    method: 'POST',
    url: 'return/applyReturnStock',
    data
  })
}
// 修改
export const modifyApplyReturnStock = (data) => {
  return axios({
    method: 'POST',
    url: 'return/modifyApplyReturnStock',
    data
  })
}
// 删除
export const deleteReturnStock = (applyId) => {
  return axios({
    method: 'POST',
    url: `return/deleteReturnStock/${applyId}`
  })
}


// 详情
export const getwlId = (id) => {
  return axios({
    method: 'GET',
    url: '/return/findReturnMaterailDetail/'+id,
  })
}

export const totalReturnStockAmount = (id) => {
  return axios({
    method: 'GET',
    url: '/return/totalReturnStockAmount',
  })
}


